package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) CommentRouter() {
	commentApi := api.ApiGroupApp.CommentApi
	router.POST("comments", middleware.JwtAuth(), commentApi.CommentCreateView)
	router.GET("comments", middleware.JwtAuth(), commentApi.CommentListView)
	router.GET("comments/:id", commentApi.CommentDigg)
	router.DELETE("comments/:id", middleware.JwtAuth(), commentApi.CommentDel)
}
